package cn.z2huo.demo.spring.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * <p>
 *
 * @author z2huo
 */
@SpringBootApplication
public class SpringBootDemoApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringBootDemoApp.class);

        ConfigurableEnvironment environment = applicationContext.getEnvironment();
        System.out.println(environment.getProperty("property.nacos.server-addr"));
        System.out.println(environment.getProperty("property.a"));
        System.out.println(environment.getProperty("property.nacos.group-id"));
    }

}
